package chp13;

public class Test10b {

    public static void main(String[] args) {
        //某种协议
        String content = "jack#boy#19,tom#boy#22,rose#girl#23";

        //jack boy 19
        //tom boy 22
        //rose girl 23
        String[] arr1 = content.split(",");
        for (int i = 0; i < arr1.length; i++) {
//            System.out.println(arr1[i]);
            String[] arr2 = arr1[i].split("#");
            for (int j = 0; j < arr2.length; j++) {
                System.out.print(arr2[j]+" ");
            }
            System.out.println();
        }
    }
}
